Skip to main content

borderWidth

Type

property

Summary

Specifies the width of an object's border.

Syntax

set the borderWidth of <object> to <pixelWidth>
set the borderWidth of <line> of <field> to <pixelWidth>

Description

Use the borderWidth property to change the appearance of an object's border.

By default, the borderWidth of newly created objects is 2. By default, the borderWidth of a paragraph of text in a field is 0.

If the object's showBorder property is false, the borderWidth property has no effect.

The border's appearance and color is affected by the setting of the object's threeD property.

Parameters

NameTypeDescription

pixelWidth

integer

An integer between zero and 255.

Examples

set the borderWidth of button "Cancel" to 1
set the borderWidth of this card to 24
set the borderWidth of line 5 of field 1 to 10

property: borderPattern

glossary: object, property

Compatibility and Support

Introduced

LiveCode 1.0

OS

mac

windows

linux

ios

android

Platforms

desktop

server

mobile

Thank you for your feedback!

Was this page helpful?